package com.exchange.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName package_record
 */
@TableName(value ="package_record")
@Data
public class PackageRecord implements Serializable {
    /**
     * 套餐购买记录表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所属钱包
     */
    @TableField(value = "wid")
    private Long wid;

    /**
     * 套餐外键
     */
    @TableField(value = "ptid")
    private Long ptid;

    /**
     * 电压外键
     */
    @TableField(value = "vid")
    private Long vid;

    /**
     * 套餐时长外键
     */
    @TableField(value = "patid")
    private Long patid;

    /**
     * 订单购买时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 到期时间
     */
    @TableField(value = "expiration_time")
    private Date expirationTime;

    /**
     * 0：正在使用1：已经过期
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 
     */
    @TableField(value = "remark")
    private Long remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}